package com.hotelManagerSystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hotelManagerSystem.model.RoleDepartment;
import org.apache.ibatis.annotations.Delete;

/**
 * <p>
 *  role-department Mapper 接口
 * </p>
 *
 * @author longyajr
 */
public interface RoleDepartmentMapper extends BaseMapper<RoleDepartment> {

    @Delete("DELETE FROM role_department WHERE role_id = #{roleId}")
    boolean deleteRoleDepartmentByRoleId(int roleId);
}
